/* GTKCODE_COMMON_DECLARATION */
#ifndef __GTK_CODE_BASE_DEFINE_window1__
#define __GTK_CODE_BASE_DEFINE_window1__
/* GTKCODE_COMMON_DECLARATION */

#include <gtk/gtk.h>

#define GtkNotebookLabel GtkLabel
#define _T(aa) aa
const GdkColor* GET_GDK_COLOR(const gchar* spec)
{
    static GdkColor color;
    gdk_color_parse(spec, &color);
    return &color;
}

/* GTKCODE_UI_CHILD_WIDGET_SIGNAL_HANDLER_HEADER[on_button1_clicked] */
void on_button1_clicked(
    GtkButton* button,
    GtkWidget* base_ptr
    )
{
/* GTKCODE_UI_CHILD_WIDGET_SIGNAL_HANDLER_HEADER[on_button1_clicked] */

    gtk_main_quit ();
/* GTKCODE_UI_CHILD_WIDGET_SIGNAL_HANDLER_TAIL[on_button1_clicked] */
    return;
}
/* GTKCODE_UI_CHILD_WIDGET_SIGNAL_HANDLER_TAIL[on_button1_clicked] */

/* GTKCODE_UI_CHILD_WIDGET_SIGNAL_HANDLER_HEADER[on_entry1_activate] */
void on_entry1_activate(
    GtkEntry* entry,
    GtkWidget* base_ptr
    )
{
/* GTKCODE_UI_CHILD_WIDGET_SIGNAL_HANDLER_HEADER[on_entry1_activate] */

/* GTKCODE_UI_CHILD_WIDGET_SIGNAL_HANDLER_TAIL[on_entry1_activate] */
    return;
}
/* GTKCODE_UI_CHILD_WIDGET_SIGNAL_HANDLER_TAIL[on_entry1_activate] */


/* GTKCODE_UI_WIDGET_SIGNAL_HANDLER_HEADER [on_window1_set_focus] */
void on_window1_set_focus(
    GtkWindow* window,
    GtkWidget* object,
    GtkWidget* base_ptr
    )
{
/* GTKCODE_UI_WIDGET_SIGNAL_HANDLER_HEADER[on_window1_set_focus] */

/* GTKCODE_UI_WIDGET_SIGNAL_HANDLER_TAIL[on_window1_set_focus] */
    return;
}
/* GTKCODE_UI_WIDGET_SIGNAL_HANDLER_TAIL[on_window1_set_focus] */


GtkWidget* create_window1(void)
{
    /* GTKCODE_UI_WIDGET_VAR_DEFINE */
    GtkWindow* window1;
    GtkWidget* base_ptr;
    /* GTKCODE_UI_WIDGET_VAR_DEFINE */

    /* GTKCODE_UI_CHILD_WIDGET_VAR_DEFINE */
    GtkNotebook* notebook1;
    GtkNotebookLabel* label1;
    GtkVBox* vbox1;
    GtkLabel* label4;
    GtkButton* button1;
    GtkEntry* entry1;
    GtkNotebookLabel* label2;
    GtkHBox* hbox1;
    GtkLabel* label5;
    GtkSpinButton* spinbutton1;
    GtkFontButton* fontbutton1;
    GtkNotebookLabel* label3;
    GtkHBox* hbox2;
    GtkLabel* label6;
    GtkImage* image1;
    GtkColorButton* colorbutton1;
    /* GTKCODE_UI_CHILD_WIDGET_VAR_DEFINE */

    /* GTKCODE_UI_WIDGET_CONSTRUCT */
    window1 = (GtkWindow*)gtk_window_new((GtkWindowType)(GTK_WINDOW_TOPLEVEL));
    base_ptr = (GtkWidget*)window1;
    /* GTKCODE_UI_WIDGET_CONSTRUCT */

    /* GTKCODE_UI_CHILD_WIDGET_CONSTRUCT */
    notebook1 = (GtkNotebook*)gtk_notebook_new();
    gtk_widget_set_can_focus((GtkWidget*)(notebook1), (gboolean)(TRUE));
    gtk_widget_set_visible((GtkWidget*)(notebook1), (gboolean)(TRUE));
    gtk_container_add((GtkContainer*)window1, (GtkWidget*)notebook1);

    label1 = (GtkNotebookLabel*)gtk_label_new((const gchar*)(_T("page 1")));
    gtk_widget_set_can_focus((GtkWidget*)(label1), (gboolean)(FALSE));
    gtk_widget_set_visible((GtkWidget*)(label1), (gboolean)(TRUE));

    vbox1 = (GtkVBox*)gtk_vbox_new((gboolean)(FALSE), (gint)(0));
    gtk_widget_set_can_focus((GtkWidget*)(vbox1), (gboolean)(FALSE));
    gtk_widget_set_visible((GtkWidget*)(vbox1), (gboolean)(TRUE));
    gtk_notebook_append_page((GtkNotebook*)notebook1, (GtkWidget*)vbox1, (GtkWidget*)label1);

    label4 = (GtkLabel*)gtk_label_new((const gchar*)(_T("label")));
    gtk_widget_set_can_focus((GtkWidget*)(label4), (gboolean)(FALSE));
    gtk_widget_set_visible((GtkWidget*)(label4), (gboolean)(TRUE));
    gtk_box_pack_start((GtkBox*)vbox1, (GtkWidget*)label4, TRUE, TRUE, 0);

    button1 = (GtkButton*)gtk_button_new_with_label((const gchar*)(_T("button")));
    gtk_widget_set_can_focus((GtkWidget*)(button1), (gboolean)(TRUE));
    gtk_widget_set_receives_default((GtkWidget*)(button1), (gboolean)(TRUE));
    gtk_widget_set_visible((GtkWidget*)(button1), (gboolean)(TRUE));
    gtk_box_pack_start((GtkBox*)vbox1, (GtkWidget*)button1, TRUE, TRUE, 0);

    entry1 = (GtkEntry*)gtk_entry_new();
    gtk_widget_set_can_focus((GtkWidget*)(entry1), (gboolean)(TRUE));
    gtk_entry_set_invisible_char((GtkEntry*)(entry1), (gunichar)('•'));
    gtk_entry_set_icon_activatable((GtkEntry*)entry1, GTK_ENTRY_ICON_PRIMARY, (gboolean)FALSE);
    gtk_entry_set_icon_sensitive((GtkEntry*)entry1, GTK_ENTRY_ICON_PRIMARY, (gboolean)TRUE);
    gtk_entry_set_icon_activatable((GtkEntry*)entry1, GTK_ENTRY_ICON_SECONDARY, (gboolean)FALSE);
    gtk_entry_set_icon_sensitive((GtkEntry*)entry1, GTK_ENTRY_ICON_SECONDARY, (gboolean)TRUE);
    gtk_widget_set_visible((GtkWidget*)(entry1), (gboolean)(TRUE));
    gtk_box_pack_start((GtkBox*)vbox1, (GtkWidget*)entry1, TRUE, TRUE, 0);

    label2 = (GtkNotebookLabel*)gtk_label_new((const gchar*)(_T("page 2")));
    gtk_widget_set_can_focus((GtkWidget*)(label2), (gboolean)(FALSE));
    gtk_widget_set_visible((GtkWidget*)(label2), (gboolean)(TRUE));

    hbox1 = (GtkHBox*)gtk_hbox_new((gboolean)(FALSE), (gint)(0));
    gtk_widget_set_can_focus((GtkWidget*)(hbox1), (gboolean)(FALSE));
    gtk_widget_set_visible((GtkWidget*)(hbox1), (gboolean)(TRUE));
    gtk_notebook_append_page((GtkNotebook*)notebook1, (GtkWidget*)hbox1, (GtkWidget*)label2);

    label5 = (GtkLabel*)gtk_label_new((const gchar*)(_T("label")));
    gtk_widget_set_can_focus((GtkWidget*)(label5), (gboolean)(FALSE));
    gtk_widget_set_visible((GtkWidget*)(label5), (gboolean)(TRUE));
    gtk_box_pack_start((GtkBox*)hbox1, (GtkWidget*)label5, TRUE, TRUE, 0);

    spinbutton1 = (GtkSpinButton*)gtk_spin_button_new((GtkAdjustment*)(NULL), (gdouble)(0), (guint)(0));
    gtk_widget_set_can_focus((GtkWidget*)(spinbutton1), (gboolean)(TRUE));
    gtk_entry_set_invisible_char((GtkEntry*)(spinbutton1), (gunichar)('•'));
    gtk_entry_set_icon_activatable((GtkEntry*)spinbutton1, GTK_ENTRY_ICON_PRIMARY, (gboolean)FALSE);
    gtk_entry_set_icon_sensitive((GtkEntry*)spinbutton1, GTK_ENTRY_ICON_PRIMARY, (gboolean)TRUE);
    gtk_entry_set_icon_activatable((GtkEntry*)spinbutton1, GTK_ENTRY_ICON_SECONDARY, (gboolean)FALSE);
    gtk_entry_set_icon_sensitive((GtkEntry*)spinbutton1, GTK_ENTRY_ICON_SECONDARY, (gboolean)TRUE);
    gtk_widget_set_visible((GtkWidget*)(spinbutton1), (gboolean)(TRUE));
    gtk_box_pack_start((GtkBox*)hbox1, (GtkWidget*)spinbutton1, TRUE, TRUE, 0);

    fontbutton1 = (GtkFontButton*)gtk_font_button_new();
    gtk_widget_set_can_focus((GtkWidget*)(fontbutton1), (gboolean)(TRUE));
    gtk_widget_set_receives_default((GtkWidget*)(fontbutton1), (gboolean)(TRUE));
    gtk_widget_set_visible((GtkWidget*)(fontbutton1), (gboolean)(TRUE));
    gtk_box_pack_start((GtkBox*)hbox1, (GtkWidget*)fontbutton1, TRUE, TRUE, 0);

    label3 = (GtkNotebookLabel*)gtk_label_new((const gchar*)(_T("page 3")));
    gtk_widget_set_can_focus((GtkWidget*)(label3), (gboolean)(FALSE));
    gtk_widget_set_visible((GtkWidget*)(label3), (gboolean)(TRUE));

    hbox2 = (GtkHBox*)gtk_hbox_new((gboolean)(FALSE), (gint)(0));
    gtk_widget_set_can_focus((GtkWidget*)(hbox2), (gboolean)(FALSE));
    gtk_widget_set_visible((GtkWidget*)(hbox2), (gboolean)(TRUE));
    gtk_notebook_append_page((GtkNotebook*)notebook1, (GtkWidget*)hbox2, (GtkWidget*)label3);

    label6 = (GtkLabel*)gtk_label_new((const gchar*)(_T("label")));
    gtk_widget_set_can_focus((GtkWidget*)(label6), (gboolean)(FALSE));
    gtk_widget_set_visible((GtkWidget*)(label6), (gboolean)(TRUE));
    gtk_box_pack_start((GtkBox*)hbox2, (GtkWidget*)label6, TRUE, TRUE, 0);

    image1 = (GtkImage*)gtk_image_new();
    gtk_widget_set_can_focus((GtkWidget*)(image1), (gboolean)(FALSE));
    gtk_image_set_from_stock((GtkImage*)image1, (gchar*)"gtk-missing-image", (GtkIconSize)4);
    gtk_widget_set_visible((GtkWidget*)(image1), (gboolean)(TRUE));
    gtk_box_pack_start((GtkBox*)hbox2, (GtkWidget*)image1, TRUE, TRUE, 0);

    colorbutton1 = (GtkColorButton*)gtk_color_button_new_with_color((const GdkColor*)(GET_GDK_COLOR("#000000000000")));
    gtk_widget_set_can_focus((GtkWidget*)(colorbutton1), (gboolean)(TRUE));
    gtk_widget_set_receives_default((GtkWidget*)(colorbutton1), (gboolean)(TRUE));
    gtk_widget_set_visible((GtkWidget*)(colorbutton1), (gboolean)(TRUE));
    gtk_box_pack_start((GtkBox*)hbox2, (GtkWidget*)colorbutton1, TRUE, TRUE, 0);

    /* GTKCODE_UI_CHILD_WIDGET_CONSTRUCT */

    /* GTKCODE_UI_WIDGET_PROPERTY */
    gtk_widget_set_can_focus((GtkWidget*)(window1), (gboolean)(FALSE));
    /* GTKCODE_UI_WIDGET_PROPERTY */

    /* GTKCODE_UI_CHILD_WIDGET_SIGNAL_CONNECT */
    g_signal_connect(G_OBJECT(button1), "clicked", G_CALLBACK(on_button1_clicked), base_ptr);
    g_signal_connect(G_OBJECT(entry1), "activate", G_CALLBACK(on_entry1_activate), base_ptr);
    /* GTKCODE_UI_CHILD_WIDGET_SIGNAL_CONNECT */

    /* GTKCODE_UI_WIDGET_SIGNAL_CONNECT */
    g_signal_connect(G_OBJECT(window1), "set-focus", G_CALLBACK(on_window1_set_focus), base_ptr);
    /* GTKCODE_UI_WIDGET_SIGNAL_CONNECT */

    return window1;
};

int main(int argc, char argv[])
{
    gtk_init(&argc, &argv);

    GtkWidget* window1 = create_window1();

    gtk_widget_show (window1);
    gtk_main ();
    return 0;
}

#endif
